import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import 'lib-flexible'
import './plugins/element.js'
import './filters/format-date.js'
import api from './api'
import '@/assets/fonts/iconfont.css'
import VueClipboard from 'vue-clipboard2'

Vue.use(VueClipboard)
Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$axios = axios
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

//页面跳转后 默认显示顶部内容
router.afterEach(() => {
  window.scrollTo(0, 0)
})